{include file="layout_basic.tpl"}
	<fieldset>
		<legend>{$ui.listlancamentos}</legend>
		
		<div class="widget_tableDiv">
			<table id="datatable">
				<thead>
					<tr>
						<td>{$ui.date}</td>
						<td>{$ui.description}</td>
						<td>{$ui.thevalue}</td>
						<td>{$ui.catname}</td>
						<td>{$ui.nomeconta}</td>
						<td>{$ui.actions}</td>
					</tr>
				</thead>
				
				<tbody class="scrollingContent">
				{foreach from=$tablevalues item=row}
				<tr>
					<td>{$row.data_lan}</td>
					<td>{$row.descricao|substr:0:35} </td>
					<td>{$row.valor_lan}</td>
					<td>{$row.nome_categoria}</td>
					<td>{$row.nome_conta}</td>
					<td> 
						<a href="lancamentos.php?edit={$row.cod_lancamento}" style="display:inline"><img alt="edit" border="0" src="img/edit.png"/></a>
						&nbsp;
						<a href="lancamentos.php?del={$row.cod_lancamento}" style="display:inline"><img alt="delete" border="0" src="img/delete.jpg"/></a>
					</td>
				</tr>
				{/foreach}
				</tbody>
			</table>		
		</div>
		
		<script type="text/javascript">
			initTableWidget('datatable',570,350,Array('N','S',false));
		</script>
	
	</fieldset>
{include file="layout_basic_tail.tpl"}